Skip to content

🐛 Return ResponseText from resp-text fallback#605

Merged
nevans merged 2 commits intomasterfrom
parser/resp_text-backtrack-should-return-ResponseText
Feb 11, 2026
Merged

🐛 Return ResponseText from resp-text fallback#605
nevans merged 2 commits intomasterfrom
parser/resp_text-backtrack-should-return-ResponseText

Conversation

@nevans
Copy link
Collaborator

@nevans nevans commented Feb 11, 2026

This bug was introduced in #601, which hasn't been released yet.

This bug was introduced in #601, which hasn't been released yet.
This scopes the backtracking _only_ around the `"[" resp-text-code "]"`
case.  The `else` clause and the `rescue` fallback can now execute the
same code.  In addition to reducing duplication of code, this also
potentially reduces _work_, since there's no point in rescuing the
`else` clause only to try the exact same thing again.
@nevans nevans merged commit 69bd2e4 into master Feb 11, 2026
39 checks passed
@nevans nevans deleted the parser/resp_text-backtrack-should-return-ResponseText branch February 11, 2026 18:31
@nevans nevans added the bug Something isn't working label Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant